home *** CD-ROM | disk | FTP | other *** search
/ US Department of Defense…ndamentals 1.0 2004 April / US Department of Defense: Firewall & Router Fundamentals 1.0 2004 April.iso / sco / interface / objectives.swf / scripts / frame_11 / DoAction.as
Encoding:
Text File  |  2004-03-23  |  1.4 KB  |  68 lines

  1. function reset_original()
  2. {
  3.    if(_level0.current_module == 1)
  4.    {
  5.       if(Number(_level0.current_sco) == 2)
  6.       {
  7.          temp = "one";
  8.       }
  9.       if(Number(_level0.current_sco) == 3)
  10.       {
  11.          temp = "two";
  12.       }
  13.       if(Number(_level0.current_sco) == 4)
  14.       {
  15.          temp = "three";
  16.       }
  17.    }
  18.    if(_level0.current_module == 2)
  19.    {
  20.       if(Number(_level0.current_sco) == 5)
  21.       {
  22.          temp = "one";
  23.       }
  24.       if(Number(_level0.current_sco) == 6)
  25.       {
  26.          temp = "two";
  27.       }
  28.       if(Number(_level0.current_sco) == 7)
  29.       {
  30.          temp = "three";
  31.       }
  32.       if(Number(_level0.current_sco) == 8)
  33.       {
  34.          temp = "four";
  35.       }
  36.    }
  37.    if(_level0.current_module == 3)
  38.    {
  39.       if(Number(_level0.current_sco) == 9)
  40.       {
  41.          temp = "one";
  42.       }
  43.       if(Number(_level0.current_sco) == 10)
  44.       {
  45.          temp = "two";
  46.       }
  47.       if(Number(_level0.current_sco) == 11)
  48.       {
  49.          temp = "three";
  50.       }
  51.       if(Number(_level0.current_sco) == 12)
  52.       {
  53.          temp = "four";
  54.       }
  55.    }
  56.    this[temp].clip.newWidth = 500;
  57.    this[temp].clip.newHeight = 125;
  58. }
  59. function set_back(b)
  60. {
  61.    if(b != temp)
  62.    {
  63.       this[temp].clip.newWidth = this[temp].clip.original_width;
  64.       this[temp].clip.newHeight = this[temp].clip.original_height;
  65.    }
  66. }
  67. reset_original();
  68.